package com.hoas.quickstart.threads.chapter03.chapter03_2_5;

public class Run {

    public static void main(String[] args) {

        try {
            ThreadB b = new ThreadB();
            b.setName("B");
            ThreadA a = new ThreadA(b);
            a.setName("A");
            a.start();
            Thread.sleep(1000);
            ThreadC c = new ThreadC(b);
            c.setName("C");
            c.start();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }

}
